﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.VideoDownload
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    using DB_NH.DB_Model.VideoDownload;

    public class map_VideoDownLoadRecord : EntityMapping<VideoDownLoadRecord>
    {
        public map_VideoDownLoadRecord()
        {
            ManyToOne(x => x.Project, map =>
            {
                map.Column("ProjId");
            });

            ManyToOne(x => x.User, map =>
            {
                map.Column("UserId");
            });

            Property(x => x.BgnDate, map =>
            {
            });

            Property(x => x.EndDate, map =>
            {

            });

            Property(x => x.Remark, map =>
            {
                map.Length(100000000);
            });

            Property(x => x.Rooms, map =>
            {
                map.Length(10000);
            });

            Property(x => x.Status, map =>
            {
                map.Length(50);
            });
            
        }
    }
}
